﻿using Aop.Api.Domain;
using Aop.Api.Request;
using Aop.Api.Response;

namespace Vin.Extension.Framework.Alipay.Service;

public class VinAlipayTransferCertificateService : VinAlipayBaseService
{
    public async Task<AlipayFundTransUniTransferResponse> Transfer(AlipayFundTransUniTransferModel model)
    {
        model.BizScene ??= "DIRECT_TRANSFER";
        model.ProductCode ??= "TRANS_ACCOUNT_NO_PWD";
        var request = new AlipayFundTransUniTransferRequest();
        request.SetBizModel(model);
        return await Task.FromResult(SendCertificate(request));
    }
}